-
Notifications
You must be signed in to change notification settings - Fork 1k
HAL configuration #518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
HAL configuration #518
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fpistm
added a commit
to fpistm/STM32SD
that referenced
this pull request
May 9, 2019
Require stm32duino/Arduino_Core_STM32#518 Signed-off-by: Frederic Pillon <[email protected]>
fpistm
added a commit
to fpistm/STM32Ethernet
that referenced
this pull request
May 10, 2019
variant.h is now included thanks stm32_def.h See stm32duino/Arduino_Core_STM32#518 Signed-off-by: Frederic.Pillon <[email protected]>
fpistm
added a commit
to fpistm/STM32Ethernet
that referenced
this pull request
May 11, 2019
variant.h is now included thanks stm32_def.h See stm32duino/Arduino_Core_STM32#518 Signed-off-by: Frederic.Pillon <[email protected]>
baa9e86
to
9f6571d
Compare
Signed-off-by: Frederic.Pillon <[email protected]>
Before each variants had to include the STM32 HAL configuration file: stm32yyxx_hal_conf.h. Those files were almost the same for the same series. With a default one per series this avoid to add it to the variant. Extra HAL module can be enabled in variant.h if required or in a file named (at sketch level): `hal_conf_extra.h` Custom HAL configuration file can replace the default one by adding a file named (at sketch level): `hal_conf_custom.h` . Signed-off-by: Frederic.Pillon <[email protected]>
variant.h is now included thanks stm32_def.h Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
As Wire is a built-in library no need to modify it. Signed-off-by: Frederic Pillon <[email protected]>
As SPI is a built-in library no need to modify it. Note: no size change Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
Note: no size change Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
Note: no size change Signed-off-by: Frederic Pillon <[email protected]>
Note: no size change Signed-off-by: Frederic Pillon <[email protected]>
Note: no size change Signed-off-by: Frederic Pillon <[email protected]>
Note: Interrupt API does not use the HAL EXTI module anyway API is cleaned with HAL_EXTI_MODULE_DISABLED Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
This was referenced May 15, 2019
Very useful for STM32F030F4P6 16KB flash. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR add some enhancement and flexibility.
variant.h
is now independent and does not rely on any header.Default STM32 HAL configuration:
stm32yyxx_hal_conf.h
withyy
the STM32 series: f0, f1, f2, f3, f4, g0, f7, h7, l0, l1, l4, wbThose files were almost the same for the all series.
With a default one per series this avoid to add it to the variant folder.
variant.h
if required or in a file named (at sketch level):hal_conf_extra.h
hal_conf_custom.h
.TICK_INT_PRIORITY
PREFETCH_ENABLE
INSTRUCTION_CACHE_ENABLE
DATA_CACHE_ENABLE
USE_SPI_CRC
Some HAL modules can now be disabled if user does not use the feature by defining one or more following values (solve Disable HAL feature when not used in the sketch #228):
HAL_ADC_MODULE_DISABLED
HAL_I2C_MODULE_DISABLED
HAL_RTC_MODULE_DISABLED
HAL_SPI_MODULE_DISABLED
HAL_DAC_MODULE_DISABLED
HAL_ETH_MODULE_DISABLED
HAL_SD_MODULE_DISABLED
HAL_QSPI_MODULE_DISABLED
HAL_EXTI_MODULE_DISABLED
HAL_TIM_MODULE_DISABLED
Note:
HAL_UART_MODULE_ENABLED
andHAL_PCD_MODULE_ENABLED
are handled thanks Arduino menu.For example, default Blink sketch for Nucleo L031K6:
HAL_*_MODULE_DISABLED
defined inhal_conf_extra.h
and Serial disabled:Refer to HAL configuration WiKi page